package com.rtx.wms.customer.k3.job;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.rtx.api.annotation.RtxJobAnnotation;
import com.rtx.api.quartz.job.BaseJob;
import com.rtx.wms.customer.k3.base.service.impl.CustomerHandle;

@Component
@DisallowConcurrentExecution
@RtxJobAnnotation(jobName = "同步K3客户信息",description = "K3同步客户信息",cron = "0 1 23 * * ?")
public class K3CustomerJob implements BaseJob {

	@Autowired
	CustomerHandle customerHandle;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
    	customerHandle.schedulerBasic();
    }
}
